package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 何华树
 * Date: 2024-09-02
 * Time: 12:40
 */
public class Dog extends Animal implements ISwimming,IRunning{

    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("吃狗粮...");

    }

    @Override
    public void run() {
        System.out.println(this.name+" 正在快快乐乐的跑着，吐着舌头。");
    }

    @Override
    public void swim() {
        System.out.println(this.name+" 正在用着他短小的腿，进行着狗刨式。");
    }
}
